#include <iostream>
#include <string>
#include <exception>
using namespace std;
void func(){
	throw "函数内部抛出异常";
}
int main(){
	try{
		cout<<"调用函数\n";
		func();
	}
	catch(const char *e){
		cout<<"捕获函数抛出的异常\n";

	}
}
